angular.module('meMoreCooperateServices', [])

  .factory('MoreCooperate', function ($resource, $rootScope, ENV, Storage) {

    //设置访问接口路径
    var APIUrl = ENV.api;

    //访问获取用户信息的接口
    var aboutCooperationResource = $resource(APIUrl + "meMore/getAboutCooperation.do");

    var aboutCooperationJson;

    return {
      getAboutCooperation : function(){
        aboutCooperationResource.save(
          {},
          function (data) {
            aboutCooperationJson = data;
            $rootScope.$broadcast('Me.getAboutCooperation');
          }
        );
      },

      getAboutCooperationJson : function (){
        return aboutCooperationJson;
      }


    }

  });
